const teacher = {
  path: '/teacher',
  name: 'Teacher',
  component: resolve => require(['@/views/teacher/teacher'], resolve),
  meta: {
    name: '课程教学',
    keepAlive: false,
    roles: [32, 2, 128]
  },
  redirect: {
    name: 'MyCourses',
    query: { toPage: "myTeaching" }
  },
  children: [
    // 第一第二个路由固定再前面 不能改变
    // {
    //   path: 'teaching',
    //   name: 'Teaching',
    //   components: {
    //     default: resolve => require(['@/views/teacher/teaching/teachingCourses'], resolve),
    //     teacherNav: resolve => require(['@/components/teacherPage/teacherNav/teacherNav'], resolve)
    //   },
    //   meta: {
    //     name: '正在教学'
    //   }
    // },
    // {
    //   path: 'taught',
    //   name: 'Taught',
    //   components: {
    //     default: resolve => require(['@/views/teacher/taught/coursesTaught'], resolve),
    //     teacherNav: resolve => require(['@/components/teacherPage/teacherNav/teacherNav'], resolve)
    //   },
    //   meta: {
    //     name: '完成教学'
    //   }
    // },
    {
      path: 'statistic/:id',
      name: 'Statistics',
      component: resolve => require(['@/views/teacher/statistics/courseStatistics'], resolve),
      meta: {
        name: '学情看板',
        keepAlive: true,
      }
    },
    {
      path: 'sinfo/:id',
      name: 'courseStatistics',
      component: resolve => require(['@/views/teacher/statisticsInfo/index.vue'], resolve),
      meta: {
        name: '课程统计',
        roles: [2, 32, 128],
        keepAlive: true
      }
    },
    {
      path: 'coursedetail',
      name: 'Coursedetail',
      component: resolve => require(['@/views/teacher/courseDetail/courseDetail'], resolve),
      meta: {
        name: '课程浏览',
        // keepAlive: true,
      }
    },
    {
      path: 'csetting',
      name: 'CoursedetailSetting',
      component: resolve => require(['@/views/teacher/courseDetail/courseDetail'], resolve),
      meta: {
        name: '课程浏览',
        // keepAlive: true,
      }
    },
    {
      path: 'studentlist',
      name: 'StudentList',
      component: resolve => require(['@/views/teacher/correct/studentList'], resolve),
      meta: {
        name: '按学生批阅',
        // keepAlive: false,
      }
    },
    // {
    //   path: 'follow',
    //   name: 'FollowStudent',
    //   component: resolve => require(['@/views/teacher/follow/index'], resolve),
    //   meta: {
    //     name: '跟进'
    //   }
    // },
    {
      path: 'correct/:id',
      name: 'Correct',
      component: resolve => require(['@/views/teacher/correct/correct'], resolve),
      meta: {
        name: '批阅',
        keepAlive: true,
      },
    },
    {
      path: 'taskreview/:id',
      name: 'taskReview',
      component: resolve => require(['@/views/teacher/taskReview/index'], resolve),
      meta: {
        name: '按任务批阅',
        keepAlive: true
      }
    }
  ]
}

export default teacher